<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
	<head>
	</head>
  
	<body>
  		<form id="roleForm" method="post">
    		<input type="hidden" name="id" value=""/>
    		<input type="hidden" name="orgCode" id="orgCode" value="">
			<input type="hidden" name="orgId" id="orgId" value="">
    		<table align="center" width="100%" class="listTable">
      			<tr height="30" >
        			<td>角色名称：</td>
        			<td><input class="easyui-validatebox" type="text" name="roleName" required="true"/></td>
      			</tr>
      			<tr>
        			<td>角色描述：</td>
        			<td><input class="easyui-validatebox" type="text" name="roleDesp" required="true"/></td>
      			</tr>
      			<tr>
        			<td>是否有效：</td>
        			<td><select style="width:100px" name="available" id="available">
            				<option value="Y">有效</option>
            				<option value="N">无效</option>
          				</select>
        			</td>
      			</tr>
            	<shiro:hasPermission name="____AgentAdmin">
            	<tr>
              		<td>所在机构</td>
              		<td>
                		<span id="showorgname"></span>
						<!-- only for Admin-->
						<div id="selectOrgArea">
							<input type="text" class="easyui-validatebox" name="orgNameCn" id="orgNameCn" readonly="true" onClick="setUpOrgInfo()">
                				<a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" href="javascript:void(0);" onClick="setUpOrgInfo()">选取</a>
						</div>
					</td>
            	</tr>
            	</shiro:hasPermission>
      			
      			<tr height="30" >
        			<td colspan="4" align="center">
        				<a href="javascript:void(0);" id="btn-back" onClick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-back">返回</a> 
        				<a href="javascript:void(0);" id="btn-add" onclick="addOrUpdateRole('${opt}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
        			</td>
      			</tr>
    		</table>
  		</form>
	</body>
</html>